package Text2;

public class Time {
    public void time(){
        long nums=1;
        for (long i = 0; i < 199990000; i++) {
            nums+=i;
        }
        System.out.println(nums);
        long start=System.currentTimeMillis();
        long num=1;
        for (long i = 0; i < 199990000; i++) {
            num+=i;
        }
        System.out.println(num);
        long end=System.currentTimeMillis();
        System.out.println(end-start);
    }
}
